<!-- include tpl=head menutitle=$page_rs.title -->
<!-- if $cate_rs.banner || $page_rs.banner -->
<div class="banner" style="background-image:url('{$cate_rs.banner ? $cate_rs.banner.filename : $page_rs.banner.filename}');"><img src="{#images#}/blank.gif" alt="{$cate_rs.title}" /></div>
<!-- /if -->
<div class="main">
	<!-- include tpl=block/breadcrumb -->
	<article class="am-article">
		<div class="am-article-hd">
			<h1 class="am-article-title">{$rs.title}</h1>
			<p class="am-article-meta">
				发布日期：<span>{func time_format $rs.dateline}</span>&nbsp; &nbsp;
				浏览次数：<span id="lblVisits">{$rs.hits}</span>
				<!-- if $rs.tag -->
				&nbsp; &nbsp; 关键字：
					<!-- loop from=$rs.tag key=$key value=$value -->
					<a href="{$value.url}" title="{$value.alt}" target="{$value.target}" style="color:#999;">{$value.title}</a>
					<!-- /loop -->
				<!-- /if -->
			</p>
		</div>
		<div class="am-article-bd">
			<!-- if $rs.note --><p class="am-article-lead">{func nl2br $rs.note}</p><!-- /if -->
			<div class="content">{$rs.content}</div>
			<!-- if $session.user_id -->
			<div style="padding:10px;" class="am-text-center">
				<input type="button" value="{if fav_check($rs.id) }已收藏{else}加入收藏{/if}" class="am-btn am-btn-primary" onclick="$.phpok_app_fav.act('{$rs.id}',this)" />
			</div>
			<!-- /if -->
		</div>
	</article>
	<!-- include tpl=block/next_prev -->
	<!-- if $page_rs.comment_status -->
		<!-- include tpl=block/comment tid=$rs.id -->
	<!-- /if -->
</div>
<!-- include tpl=foot -->